3.170 \(\int (c+d x)^m \cos (a+b x) \cot ^2(a+b x) \, dx\)

Optimal. Leaf size=154 \[ \text {Int}\left (\cot (a+b x) \csc (a+b x) (c+d x)^m,x\right )+\frac {i e^{i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (-\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {i b (c+d x)}{d}\right )}{2 b}-\frac {i e^{-i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {i b (c+d x)}{d}\right )}{2 b} \]

[Out]

CannotIntegrate((d*x+c)^m*cot(b*x+a)*csc(b*x+a),x)+1/2*I*exp(I*(a-b*c/d))*(d*x+c)^m*GAMMA(1+m,-I*b*(d*x+c)/d)/
b/((-I*b*(d*x+c)/d)^m)-1/2*I*(d*x+c)^m*GAMMA(1+m,I*b*(d*x+c)/d)/b/exp(I*(a-b*c/d))/((I*b*(d*x+c)/d)^m)

________________________________________________________________________________________

Rubi [A]  time = 0.24, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \[ \int (c+d x)^m \cos (a+b x) \cot ^2(a+b x) \, dx \]

Verification is Not applicable to the result.

[In]

Int[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x]^2,x]

[Out]

((I/2)*E^(I*(a - (b*c)/d))*(c + d*x)^m*Gamma[1 + m, ((-I)*b*(c + d*x))/d])/(b*(((-I)*b*(c + d*x))/d)^m) - ((I/
2)*(c + d*x)^m*Gamma[1 + m, (I*b*(c + d*x))/d])/(b*E^(I*(a - (b*c)/d))*((I*b*(c + d*x))/d)^m) + Defer[Int][(c
+ d*x)^m*Cot[a + b*x]*Csc[a + b*x], x]

Rubi steps

\begin {align*} \int (c+d x)^m \cos (a+b x) \cot ^2(a+b x) \, dx &=-\int (c+d x)^m \cos (a+b x) \, dx+\int (c+d x)^m \cot (a+b x) \csc (a+b x) \, dx\\ &=-\left (\frac {1}{2} \int e^{-i (a+b x)} (c+d x)^m \, dx\right )-\frac {1}{2} \int e^{i (a+b x)} (c+d x)^m \, dx+\int (c+d x)^m \cot (a+b x) \csc (a+b x) \, dx\\ &=\frac {i e^{i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (-\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {i b (c+d x)}{d}\right )}{2 b}-\frac {i e^{-i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {i b (c+d x)}{d}\right )}{2 b}+\int (c+d x)^m \cot (a+b x) \csc (a+b x) \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 9.89, size = 0, normalized size = 0.00 \[ \int (c+d x)^m \cos (a+b x) \cot ^2(a+b x) \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x]^2,x]

[Out]

Integrate[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x]^2, x]

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right )^{2}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a)^2,x, algorithm="fricas")

[Out]

integral((d*x + c)^m*cos(b*x + a)*cot(b*x + a)^2, x)

________________________________________________________________________________________

giac [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a)^2,x, algorithm="giac")

[Out]

integrate((d*x + c)^m*cos(b*x + a)*cot(b*x + a)^2, x)

________________________________________________________________________________________

maple [A]  time = 0.10, size = 0, normalized size = 0.00 \[ \int \left (d x +c \right )^{m} \cos \left (b x +a \right ) \left (\cot ^{2}\left (b x +a \right )\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x+c)^m*cos(b*x+a)*cot(b*x+a)^2,x)

[Out]

int((d*x+c)^m*cos(b*x+a)*cot(b*x+a)^2,x)

________________________________________________________________________________________

maxima [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a)^2,x, algorithm="maxima")

[Out]

integrate((d*x + c)^m*cos(b*x + a)*cot(b*x + a)^2, x)

________________________________________________________________________________________

mupad [A]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \cos \left (a+b\,x\right )\,{\mathrm {cot}\left (a+b\,x\right )}^2\,{\left (c+d\,x\right )}^m \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a + b*x)*cot(a + b*x)^2*(c + d*x)^m,x)

[Out]

int(cos(a + b*x)*cot(a + b*x)^2*(c + d*x)^m, x)

________________________________________________________________________________________

sympy [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right )^{m} \cos {\left (a + b x \right )} \cot ^{2}{\left (a + b x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)**m*cos(b*x+a)*cot(b*x+a)**2,x)

[Out]

Integral((c + d*x)**m*cos(a + b*x)*cot(a + b*x)**2, x)

________________________________________________________________________________________